package com.watson.todolist.search;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

import com.watson.todolist.constants.DatabaseConstants;
import com.watson.todolist.to.TodoItem;
import android.database.Cursor;

import com.watson.todolist.database.ToDoListManager;
import com.watson.todolist.to.TodoListAccount;

/**
 * This class provides various algorithms for searching through a todo list.
 * 
 * @author Jasmin Muminhodzic
 * @since 1.0
 * 
 */
public class Search {

	private ToDoListManager toDoManager;

	public Search(ToDoListManager toDoManager) {
		this.toDoManager = toDoManager;
	}

	/**
	 * This is the search algorithm that sorts through all the users todolist
	 * items and displays them by the preset categories, none, home, work, and
	 * school.
	 * 
	 * @param int categoryNumber - enter a valid number that distinguishes from
	 *        the present categories which are 0 - none, 1 - home, 2 - work, 3 -
	 *        school.
	 * @param userID
	 *            a valid userID must be sent in to ensure that the filter works
	 *            correctly
	 */
	public void searchByCategory(int categoryNumber, long userId) {
		//

	}

	/**
	 * This is the search algorithm that sorts through all the users todolist
	 * items and displays them by the date and time they were set. This should
	 * be the default setting for all displays, unless specified otherwise.
	 */
	public void searchByDate(long userId) {

	}

	/**
	 * This is the search algorithm that sorts through all the users todolist
	 * items and displays by whether they are completed or not.
	 */
	public void searchByComplete(int userId) {

	}

}
